import type {Route}          from '../index.type'
import Layout                from '@/layout/index.vue'
import {createNameComponent} from '../createNode'

const route: Route[] = [
    {
        path     : '/workFlowOverlays',
        component: Layout,
        redirect : '/workFlowOverlays/poolTask',
        meta     : {title: '标注工作流', icon: 'sfont system-home'},
        children : [
            {
                path     : 'poolTask',
                component: createNameComponent(() => import('@/views/main/workFlowOverlays/poolTask/index.vue')),
                meta     : {title: '任务池', icon: 'sfont system-home'}
            },
            {
                path     : 'myTask',
                component: createNameComponent(() => import('@/views/main/workFlowOverlays/myTask/index.vue')),
                meta     : {title: '我的任务', icon: 'sfont system-home'}
            },
        ]
    }
]

export default route
